/* 
 *  <copyright file="IComponent.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using SobrietyEngine.Actor;
using SobrietyEngine.Common;

namespace SobrietyEngine.Components
{
    public interface IComponent
    {
        //owning actor
        void SetParent(IActor parentActor);
        IActor Actor { get; }

        //if this component has been initialized
        Boolean Initialized { get; set; }
        Boolean SingleInstance { get; set; }
        Boolean Active { get; set; }
        Boolean RequiresUpdate { get; set; }

        //for pooling/creating
        void Set(Parameters parms);
        List<ParameterDescription> GetParameterDescriptions();

        //SobrietyEngine.Components.IComponent Create(Parameters parms);

        //for identitfing
        Type[] SupportedInterfaces();

        //events
        void Update(GameTime elapsedTime);
        Boolean InitComponent();
        void Remove();

        string ToString();
    }
}